home *** CD-ROM | disk | FTP | other *** search
- ; Installation-Script for ScreenTab V1.20
- ; Author: Michael Link
- ; Begin : 28.10.94
- ; Last change : 19.12.94
-
- (set DIRHELP (cat "You must enter the name of the directory, in which\n"
- "ScreenTab should be installed.\n\n"
- "If you want ScreenTab to be active everytime you\n"
- "start the computer, enter the directory\n"
- "\"SYS:WBStartup\", which is the default directory."
- )
- )
-
- (set DIR_REQUEST (cat "Please enter the destination directory\n"
- "for ScreenTab"
- )
- )
-
- (set WHICH_HOTKEY (cat "\n\nWith which key combination shall the\n"
- "preferences be called ?"
- )
- )
-
- (set WHICH_KEY (cat "\n\nWith which key combination shall the\n"
- "screens be switched ?\n\n"
- "(Don't use any of the SHIFT-Keys, because\n"
- "ScreenTab needs them for back-switching !)"
- )
- )
-
- (set WHICH_PRIORITY "\n\nEnter the task priority for ScreenTab ?")
-
- (set COPY_PREFS "\n\nCopying preferences file ...")
-
- (set OVERWRITE (cat "\n\nThere already exists a ScreenTab\n"
- "preferences file.\n"
- "Shall I overwrite it ?"
- )
- )
-
- (set VERSION_PROMPT (cat "\n\nThere's an older preferences file installed\n"
- "on your system. If you want to use these\n"
- "preferences, they must be converted.\n\n"
- "Do you want to do this ?"
- )
- )
-
- (set PLEASE_RESET (cat "\n\nIf you want to activate the new ScreenTab\n"
- "version, you have to reset your computer.\n\n"
- "Have fun with ScreenTab !"
- )
- )
-
- (set vernum (getversion "locale.library" (resident)))
- (set ver (shiftright vernum 16))
-
-
- ; ***********************************************************************
- ; * *
- ; * Request for the destination directory *
- ; * *
- ; ***********************************************************************
-
- (set DIR (askdir (prompt DIR_REQUEST)
- (help DIRHELP)
- (default "SYS:WBStartup")
- )
- )
-
- (set @default-dest DIR)
-
-
- ; ***********************************************************************
- ; * *
- ; * Asking for the tool-types *
- ; * *
- ; ***********************************************************************
-
- (set HOTKEY (askstring (prompt WHICH_HOTKEY)
- (help @askstring-help)
- (default "ctrl alt s")
- )
- )
-
- (set SWITCHKEY (askstring (prompt WHICH_KEY)
- (help @askstring-help)
- (default "LCommand Tab")
- )
- )
-
- (set TOOLPRI (askstring (prompt WHICH_PRIORITY)
- (help @askstring-help)
- (default "5")
- )
- )
-
- (tooltype (prompt "Writing tool-type HOTKEY ...")
- (help)
- (dest "/ScreenTab")
- (settooltype "CX_POPKEY" HOTKEY)
- )
-
- (tooltype (prompt "Writing tool-Type SWITCHKEY ...")
- (help)
- (dest "/ScreenTab")
- (settooltype "SWITCHKEY" SWITCHKEY)
- )
-
- (tooltype (prompt "Writing tool-Type TOOLPRI ...")
- (help)
- (dest "/ScreenTab")
- (settooltype "TOOLPRI" TOOLPRI)
- )
-
- (copyfiles (prompt ("Copying ScreenTab to %s" DIR) )
- (help @copyfiles-help)
- (source "/ScreenTab")
- (dest DIR)
- (infos)
- )
-
-
- ; ***********************************************************************
- ; * *
- ; * Checks for an existing preferences file and *
- ; * asks for a conversion *
- ; * *
- ; ***********************************************************************
-
- (if (= (exists "ENVARC:ScreenTab.prefs") 1)
- (
- (if (= (run "GetSCRTVersion" (safe) ) 2)
- (
- (if (askbool (prompt VERSION_PROMPT)
- (help)
- (default 1)
- )
- (if (= (run "PrefsConvert" (safe) ) 0)
- (copyfiles (prompt)
- (help)
- (source "T:SCRT.TMP")
- (dest "ENVARC:")
- (newname "ScreenTab.prefs")
- )
- (message "Error during conversion !!!")
- )
- )
- )
- (
- (if (askbool (prompt OVERWRITE)
- (help)
- (default 0)
- )
- (copyfiles (prompt COPY_PREFS)
- (help)
- (source "/ScreenTab.prefs")
- (dest "ENVARC:")
- )
- )
- )
- )
- )
- (
- (copyfiles (prompt COPY_PREFS)
- (help)
- (source "/ScreenTab.prefs")
- (dest "ENVARC:")
- )
- )
- )
-
-
- ; ***********************************************************************
- ; * *
- ; * Installation of the catalogs *
- ; * *
- ; ***********************************************************************
-
- (if (>= ver 38)
- (
- (set CATALOGS (askoptions (prompt (cat "\nWhich language catalogs\n"
- "shall be installed ?"))
- (help)
- (choices "German" "Swedish")
- (default 0)
- )
- )
- (if (BITAND CATALOGS 1)
- (copyfiles (prompt "Copying German catalog ...")
- (help)
- (source "/catalogs/deutsch/ScreenTab.catalog")
- (dest "LOCALE:Catalogs/deutsch")
- )
- )
- (if (BITAND CATALOGS 2)
- (copyfiles (prompt "Copying Swedish catalog ...")
- (help)
- (source "/catalogs/svenska/ScreenTab.catalog")
- (dest "LOCALE:Catalogs/svenska")
- )
- )
- )
- )
-
- (message PLEASE_RESET)
-
-